<?php
return [
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
            'cachePath' => '@common/runtime/cache',
        ],
        'assetManager'=>[
            'appendTimestamp' => true,//添加文件时间戳
            'bundles'=>[
                'yii\web\JqueryAsset' => [
                    'js' => [
                        'jquery.min.js',
                    ],
                    'jsOptions' => [
                        'position' => \yii\web\View::POS_HEAD
                    ]
                ],
                'yii\bootstrap\BootstrapAsset' => [
                    'css' => [
                        'css/bootstrap.min.css'
                    ]
                ],
                'yii\bootstrap\BootstrapPluginAsset' => [
                    'js' => [
                        'js/bootstrap.min.js'
                    ]
                ],
                'dmstr\web\AdminLteAsset' => [
                    'basePath' => '@webroot/js/adminlte',
                    'baseUrl' => '@web/js/adminlte',
                ],
            ]
        ],
    ],
    'on beforeRequest' => ['\common\components\autoLoad\Load','run'],
];
